import React, { Component } from 'react';
import {
  Platform,
  StyleSheet,
  Text,
  View,
  Button,  
  Alert,
  WebView,
} from 'react-native';

import Util from './../../util/util';
import wantrentlist from './wantrentlist';

export default class wantrent extends Component < {} > { 
    constructor(props) {
        super(props);        
        
    }

    static navigationOptions = ({navigation}) =>  ({
        headerTitle: '我要租',           
        headerRight: <Button
        onPress={() => {            
            navigation.navigate('wantrentlist');
        }}
        title="列表模式"
        color="rgba(70,70,70,1)"        
      />
      
    }); 
    render() {
        return(
            <View style={{flex:1}} >
                { <WebView source = {{uri: 'http://123.207.181.131/toys.html'}} /> }
            </View>
            // <View />
            
        );
    }      
}